﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell;
using System.ComponentModel;
using System.Windows.Forms;

namespace Sharp.UnusedReferences.Options
{
	[ClassInterface(ClassInterfaceType.AutoDual)]
	class DialogPageOptionsReset : DialogPage
	{
		#region Fields

		UserControlOptionsReset UserControlOptionsResetInstance;

		#endregion

		#region Properties
		
		internal DialogPageOptionsGeneral Options
		{
			get
			{
				return (DialogPageOptionsGeneral)UserControlOptionsResetInstance.ObjectToBeRest;
			}
			set
			{
				UserControlOptionsResetInstance.ObjectToBeRest = value;
			}
		}

		#endregion

		#region Constructors

		public DialogPageOptionsReset()
		{
			UserControlOptionsResetInstance = new UserControlOptionsReset();
		}

		#endregion

		#region Overriden Members

		protected override void OnActivate(CancelEventArgs e)
		{
			base.OnActivate(e);
			UserControlOptionsResetInstance.Populate();
		}

		[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
		protected override IWin32Window Window
		{
			get
			{
				return UserControlOptionsResetInstance;
			}
		}

		#endregion
	}
}
